Imports Microsoft.DirectX
Imports Microsoft.DirectX.Direct3D
Imports System.Runtime.InteropServices

Namespace DirectX

    Module mDirectXVars

        Public Const FVF_LINEVERT = VertexFormats.Transformed Or VertexFormats.Diffuse
        Public DeviceLost As Boolean
        Public Windowed As Boolean
        Public Adapter As Integer

        Public DispMode As DisplayMode
        Public PresentParam As PresentParameters
        Public D3D As Direct3D.Device

        Public MainMatrix As Matrix = Microsoft.DirectX.Matrix.OrthoOffCenterLH(0, DispMode.Width, DispMode.Height - 100, 0 - 100, 0.0, 1.0)

        Public WithEvents GameSprite As Direct3D.Sprite

        Public GameLine As Direct3D.Line

        Public GameSurface As Direct3D.Surface

        Public PlayerTexture As Direct3D.Texture
        Public PlayerSurface As Direct3D.Surface

        Public LightTexture As Direct3D.Texture
        Public LightSurface As Direct3D.Surface

        Public SkillTexture As Direct3D.Texture
        Public SkillSurface As Direct3D.Surface

        Public FloorItemsTexture As Direct3D.Texture
        Public FloorItemsSurface As Direct3D.Surface

        Public InventoryTexture As Direct3D.Texture
        Public InventorySurface As Direct3D.Surface


        Public ProFont9 As Fonts.MirFont

        Public bUsePixelShaders As Boolean

        Public GrayScalePixelShader As PixelShader
        Public NormalPixelShader As PixelShader
        Public MagicPixelShader As PixelShader
        Public ShadowPixelShader As PixelShader

        Public ScreenRect As Rectangle

        Public ColorFormat As Format = Format.A8R8G8B8

        Private Sub GameSprite_Lost(sender As Object, e As EventArgs) Handles GameSprite.Lost

        End Sub

        Private Sub GameSprite_Reset(sender As Object, e As EventArgs) Handles GameSprite.Reset

        End Sub

    End Module

End Namespace